<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<title>Xbox</title>
<style>
.example {
    height: 600px;
    background: #FF835B;
    border-radius: 5px 5px;
    padding: 20px;
}
</style>
</head>
<body>
<div class="example">
    <a href="#" id="close">iframe里面的关闭链接</a>
</div>
<script type="text/javascript">
  document.getElementById('close').onclick = function(){
    window.frameElement.trigger('close');
  };
</script>
<iframe src="https://github.com"></iframe>
</body>
</html>
